# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
SETUP_DIR = 'E:/workspace/calculate_metrics/'
ENVIRONMENT_DIR = SETUP_DIR + '.venv/Lib/site-packages/'
added_files = [
               (ENVIRONMENT_DIR + 'rasterio.libs','rasterio.libs'),
               (ENVIRONMENT_DIR + 'rasterio','rasterio'),
               ('D:/programming/python38/Lib/xml','xml')
               ]

a = Analysis(['main.py'],
             pathex=[SETUP_DIR],
             binaries=[],
             datas=added_files,
             hiddenimports=[],
             hookspath=[],
             hooksconfig={},
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)

exe = EXE(pyz,
          a.scripts,
          [],
          exclude_binaries=True,
          name='calculate_metrics',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          console=True,
          disable_windowed_traceback=False,
          target_arch=None,
          codesign_identity=None,
          entitlements_file=None
          )
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               upx_exclude=[],
               name='calculate_metrics',
               )
